package com.tianpengtech.admin#(result.moduleName);
import java.util.Map;

import com.jfinal.plugin.activerecord.Model;
import com.tianpengtech.common.exception.ValidateException;
import com.tianpengtech.admin.AbstractAdmin;
import com.tianpengtech.common.model.#(toLowCase(result.table.modelName)).#(result.table.modelName);
import com.tianpengtech.common.search.QueryConstructor;

public class #(result.table.modelName)AdminServiceImpl extends AbstractAdmin{

	@Override
	public void beforeAdd(Model<?> model) throws ValidateException {

	}

	@Override
	public void beforeQueryById(Model<?> model, int id) {

	}

	@Override
	public void beforeUpdate(Model<?> model) throws ValidateException {

	}

	@Override
	public void beforeDelete(Model<?> model) {

	}

	@Override
	public void builderSQLExpected(Model< ? > model,
			QueryConstructor queryConstruct, Map< String, Object > params) {

	}

	@Override
	public String tableName() {
		return #(result.table.modelName).dao.tableName();
	}

}
